package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoMountInterior;
import com.muyu.danmo.mapper.DanmoMountInteriorMapper;
import com.muyu.danmo.service.IDanmoMountInteriorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 装裱内景照片Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoMountInteriorServiceImpl implements IDanmoMountInteriorService
{
    @Autowired
    private DanmoMountInteriorMapper danmoMountInteriorMapper;

    /**
     * 查询装裱内景照片
     *
     * @param id 装裱内景照片主键
     * @return 装裱内景照片
     */
    @Override
    public DanmoMountInterior selectDanmoMountInteriorById(Long id)
    {
        return danmoMountInteriorMapper.selectDanmoMountInteriorById(id);
    }

    /**
     * 查询装裱内景照片列表
     *
     * @param danmoMountInterior 装裱内景照片
     * @return 装裱内景照片
     */
    @Override
    public List<DanmoMountInterior> selectDanmoMountInteriorList(DanmoMountInterior danmoMountInterior)
    {
        return danmoMountInteriorMapper.selectDanmoMountInteriorList(danmoMountInterior);
    }

    /**
     * 新增装裱内景照片
     *
     * @param danmoMountInterior 装裱内景照片
     * @return 结果
     */
    @Override
    public int insertDanmoMountInterior(DanmoMountInterior danmoMountInterior)
    {
        return danmoMountInteriorMapper.insertDanmoMountInterior(danmoMountInterior);
    }

    /**
     * 修改装裱内景照片
     *
     * @param danmoMountInterior 装裱内景照片
     * @return 结果
     */
    @Override
    public int updateDanmoMountInterior(DanmoMountInterior danmoMountInterior)
    {
        return danmoMountInteriorMapper.updateDanmoMountInterior(danmoMountInterior);
    }

    /**
     * 批量删除装裱内景照片
     *
     * @param ids 需要删除的装裱内景照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountInteriorByIds(Long[] ids)
    {
        return danmoMountInteriorMapper.deleteDanmoMountInteriorByIds(ids);
    }

    /**
     * 删除装裱内景照片信息
     *
     * @param id 装裱内景照片主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountInteriorById(Long id)
    {
        return danmoMountInteriorMapper.deleteDanmoMountInteriorById(id);
    }
}
